<?php
header("Content-Type:application/json;charset=utf-8");
require("../init.php");
//sql
$sql = " SELECT * FROM dk_book WHERE sold_count !=0 order by sold_count DESC  limit 10 ";
$result = mysqli_query($conn,$sql);
echo json_encode(mysqli_fetch_all($result, 1));
?>